<div class="workplace">  
	<?php echo $template['partials']['loading_ajax']; ?>
	<?php echo $template['partials']['note'];?>

	<div class="row-fluid">

                    <div class="span12">
                        <div class="head clearfix">
                            <div class="isw-picture"></div>
                            <h1>Photos of <?=$nameperson?></h1>
                        </div>
                        <div class="block gallery clearfix">
                        	<?php if(count($photos )) : ?>
                        	<?php foreach($photos as $photo) : ?>
                            	<div style="float:left; width:200px; margin:20px" id="pic_<?=$photo['id']?>">
	                            	<a class="fancybox" style="width:200px; height:150px; overflow:hidden" rel="group" href="<?=base_url() . $photo['photo']?>">
	                            		<img src="<?=base_url() . $photo['photo']?>" style="width:200px; height:auto" class="img-polaroid"/>
	                            	
	                            	</a>
	                            	<div class="btn btn-mini" onclick="confirm_del('<?=URL_ADMIN?>person/delete_pic/<?=$photo['id']?>', 'pic_<?=$photo['id']?>')">
	                            		<span class="icon-trash"></span>
	                            		<span>Remove</span>
	                            	</div>
                            	</div>
                   
                        	<?php endforeach ?>
                    		<?php endif?>
                        </div>
                    </div>

                </div>

                <div class="dr"><span></span></div>

</div>